<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<meta name="format-detection" content="telephone=no">
<title>南方资管</title>
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/main.css" rel="stylesheet" type="text/css">
<script src="js/rem.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=jer91VfBFW4Q79bXgxI1Vi9P3sZGeU6H"></script>
</head>
<body>
<?php include("header.php");?>
<div class="container">
  
  <div class="banner-warp"><img src="images/contact-img.jpg" alt="携 手 共 进   和 谐 共 赢" width="100%"></div>
  <div class="menu-tab-warp">
    <ul class="menu-tab">
      <a href="" title="总公司" class="current">总公司</a>
      <a href="" title="分公司">分公司</a>
      <a href="" title="子公司">子公司</a>
    </ul>
  </div>
  <div id="container">
    <div class="contact">
      <p>公司名称：南方不良资产经营管理（广东）有限公司</p>
      <p>公司地址：广州市天河区珠江新城华兴国路21号广物中心25楼</p>
      <p>公司电话：020-38837822</p>
      <p>公司传真：020-83108606</p>
      <p>邮编地址：510623</p>
      <p>电子邮箱：nanfang2501@163.com</p>
      <p>官方网站：http://southamc.com</p>
    </div>
    <div class="map-warp">
      <div id="map" style="width: 100%; height: 100%;">
        
      </div>
    </div>
  </div>

</div>
<?php include("footer.php");?>

<script src="js/jquery.min.js"></script>
<script src="js/comm.js"></script>
<script type="text/javascript">
  //创建和初始化地图函数：
  function initMap(){
    createMap();//创建地图
    setMapEvent();//设置地图事件
    addMapControl();//向地图添加控件
    addMapOverlay();//向地图添加覆盖物
  }
  function createMap(){ 
    map = new BMap.Map("map"); 
    map.centerAndZoom(new BMap.Point(113.337379,23.126733),19);
  }
  function setMapEvent(){
    map.enableScrollWheelZoom();
    map.enableKeyboard();
    map.enableDragging();
    map.enableDoubleClickZoom()
  }
  function addClickHandler(target,window){
    target.addEventListener("click",function(){
      target.openInfoWindow(window);
    });
  }
  function addMapOverlay(){
    var markers = [
      {content:"公司地址：广州市天河区珠江新城华兴国路21号广物中心25楼",title:"南方资管",imageOffset: {width:-23,height:-21},position:{lat:23.126654,lng:113.337303}}
    ];
    for(var index = 0; index < markers.length; index++ ){
      var point = new BMap.Point(markers[index].position.lng,markers[index].position.lat);
      var marker = new BMap.Marker(point,{icon:new BMap.Icon("http://api.map.baidu.com/lbsapi/createmap/images/icon.png",new BMap.Size(20,25),{
        imageOffset: new BMap.Size(markers[index].imageOffset.width,markers[index].imageOffset.height)
      })});
      var label = new BMap.Label(markers[index].title,{offset: new BMap.Size(25,5)});
      var opts = {
        width: 200,
        title: markers[index].title,
        enableMessage: false
      };
      var infoWindow = new BMap.InfoWindow(markers[index].content,opts);
      marker.setLabel(label);
      addClickHandler(marker,infoWindow);
      map.addOverlay(marker);
    };
  }
  //向地图添加控件
  function addMapControl(){
    var navControl = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
    map.addControl(navControl);
  }
  var map;
    initMap();
</script>
</body>
</html>